{template header.html}
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a class="on" href="{dr_url('home/cache')}"><em>{lang('html-434')}</em></a><span>|</span>
		<a href="{dr_url('check/index')}"><em>{lang('html-533')}</em></a><span>|</span>
		<a href="{dr_url('check/phpinfo')}" target="_blank"><em>{lang('html-534')}</em></a><span>|</span>
	</div>
    <div class="bk10"></div>
	<div class="explain-col">
		<font color="red"><b>缓存更新完成之后，请按F5刷新整个页面。</b></font>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<table width="100%" id="dr_result">
		{loop $list $id $t}
        {if $id%3==0}<tr>{/if}
			<td width="200" align="left">
			    {$t.name}
                &nbsp;&nbsp;
                <span id="dr_cache_{$id}"><img src="/dayrui/statics/images/loading-mini.gif" height="10"></span>
			</td>
        {if $id%3==2}</tr>{/if}
		{/loop}
		</table>
	</div>
</div>
<script type="text/javascript">
{loop $list $id $t}
$.ajax({
	type: "GET",
	url: "{$t.url}&"+Math.random(),
	contentType: "application/json; charset=utf-8",
	dataType: "text",
	success: function (data) {
		$("#dr_cache_{$id}").html('<i class="icon-ok"></i>');
	},
	error: function(HttpRequest, ajaxOptions, thrownError) {
		art.dialog.tips("{$t.name}更新失败，尝试重新更新全站缓存", 999);
	}
});
{/loop}
{loop $app $url}
$.ajax({
    type: "GET",
    url: "{$url}&"+Math.random(),
    contentType: "application/json; charset=utf-8",
    dataType: "text",
    success: function (data) {

    },
    error: function(HttpRequest, ajaxOptions, thrownError) {

    }
});
{/loop}
$.get("{dr_url('home/clear')}&"+Math.random(), function(){});
</script>
{template footer.html}